using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Data.SqlClient;
using System.Data;

namespace QL_BENHVIEN
{
    public partial class frmKhoadieutri : DevExpress.XtraEditors.XtraForm
    {
        public frmKhoadieutri()
        {
            InitializeComponent();
        }

        private void frmKhoadieutri_Load(object sender, EventArgs e)
        {
            var a = "select * from DV_CAN_LAM_SANG";
            SqlConnection conn = new SqlConnection(frmDangnhap.stringConn);
            SqlCommand cm = conn.CreateCommand();
            cm.CommandText = a;
            conn.Open();
            SqlDataReader dr = cm.ExecuteReader();
            while (dr.Read())
            {
                cbbchondichvu.Properties.Items.Add(dr["MADV"].ToString() + " | " + dr["TENDV"].ToString());
            }      
        }

        private void xtraTabPage1_Paint(object sender, PaintEventArgs e)
        {

        }

    }
}